package com.ruoyi.miniapp.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 运动记录对象 t_mini_sport_record
 * 
 * @author ruoyi
 * @date 2025-07-17
 */
@Data
public class TMiniSportRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录编号 */
    @TableId(type = IdType.AUTO)
    private Long recordId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 微信编号 */
    @Excel(name = "微信编号")
    private String openId;

    /** 运动编号 */
    @Excel(name = "运动编号")
    private Long sportId;

    /** 运动名称 */
    @Excel(name = "运动名称")
    private String sportName;

    /** 卡路里 */
    @Excel(name = "卡路里")
    private String calorie;

    /** 时长 */
    @Excel(name = "时长")
    private Long time;

    /** 数量 */
    @Excel(name = "数量")
    private Long num;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;
}
